Window4 = fgui.window_class();

function Window4:ctor()

end

function Window4:OnInit()
	self.contentPane = UIPackage.CreateObject("ModalWaiting", "TestWin").asCom;
	self.contentPane:GetChild("n1").onClick:Add(self.OnClick, self);
end

function Window4:OnClick()
	self:ShowModalWait();
	FairyGUI.Timers.inst:Add(3, 1, function (param) self:CloseModalWait(); end);
end